<include file="Admin@Public:header" />   
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-warning">
                    <div class="panel-heading">{:L(CONTROLLER_NAME .'_'. ACTION_NAME)}</div>
                    <div class="panel-body">

                        <table class="table table-striped">
                            <thead>
                                <tr>
                                    <th width="40" align="center">#</th>
                                    <th>姓名</th>
                                    <th>电话</th>
                                    <th>更新时间</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <volist name="list" id="vo">
                                <tr>
                                    <td width="40" align="center">{$vo['id']}</td>
                                    <td>{$vo['name']}</td>
                                    <td>{$vo['phone']}</td>
                                    <td>{$vo['updatetime']|date='Y-m-d H:i:s',###}</td>
                                    <td>
                                    <div class="btn-group">
                                    <a href="#" class="btn btn-sm btn-primary" data-toggle="modal" data-target="#myModal_{$vo['id']}">回复</a>
                                    <a href="{:U('Feedback/Admin/delete',array('id'=>$vo['id']))}" data-href="comfire" data-text="您确定删除该反馈" class="btn btn-sm btn-danger">删除</a>
                                    </div>

                                    <div class="modal fade" id="myModal_{$vo['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                                        <div class="modal-dialog">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                                    <h4 class="modal-title">反馈内容</h4>
                                                </div>
                                                <div class="modal-body">
                                                	<form class="form-horizontal" role="form" action="{:U('Feedback/Admin/dopost')}" method="post">
                                                    	<input type="hidden" name="id" value="{$vo['id']}" />
                                                    	<div class="form-group">
                                                        	<label for="name" class="col-sm-3 control-label">姓名：</label>
                                                            <div class="col-sm-5">
                                                            	<input type="text" class="form-control" name="name" readonly id="name" value="{$vo['name']}" />
                                                            </div>
                                                        </div>
                                                    	<div class="form-group">
                                                        	<label for="phone" class="col-sm-3 control-label">联系电话：</label>
                                                            <div class="col-sm-5">
                                                            	<input type="text" class="form-control" name="phone" readonly id="phone" value="{$vo['phone']}" />
                                                            </div>
                                                        </div>
                                                    	<div class="form-group">
                                                        	<label for="content" class="col-sm-3 control-label">反馈内容：</label>
                                                            <div class="col-sm-9">
                                                            	<textarea name="content" id="content" class="form-control" readonly style="height:120px; resize:none;">{$vo['content']}</textarea>
                                                            </div>
                                                        </div>
                                                    	<div class="form-group">
                                                        	<label for="reply" class="col-sm-3 control-label">回复内容：</label>
                                                            <div class="col-sm-9">
                                                            	<textarea name="reply" id="reply" class="form-control" style="height:120px; resize:none;">{$vo['reply']}</textarea>
                                                            </div>
                                                        </div>
                                                        <div class="form-group">
                                                            <div class="col-sm-offset-3 col-sm-5">
                                                            	<button type="submit" class="btn btn-default">确认回复</button>
                                                            </div>
                                                        </div>
                                                    </form>
                                                </div>
                                            </div><!-- /.modal-content -->
                                        </div><!-- /.modal-dialog -->
                                    </div><!-- /.modal -->
                                    </td>
                                </tr>
                                </volist>
                            </tbody>
                        </table>
                        <div class="pagination">{$page}</div>
                    </div>
                </div>
            </div>
        </div>
<include file="Admin@Public:footer" />